<script>
export default {
  computed: {
  },
  globalData: {
  },
  onLaunch: async function(option) {
    this.$store.commit('fetchTags')
    const LGS = uni.getStorageSync('LGS')
    if (LGS) {
      this.$store.commit('login', LGS)
    }
    const LG = uni.getStorageSync('LG')
    const start = LG ? new Date(LG) : new Date()
    const end = new Date(start.getFullYear(), start.getMonth() + 1)
    this.$store.commit('setDate', { start, end })
  },
  onHide: function(option) {
  },
  onShow: function(option) {
  },
  mounted() {
  },
  methods: {
  },
  onError: function(err) {
  }
}
</script>

<style lang='scss'>
    @import "~@/static/style/index.scss";

    #app {
        max-width: 520px;
        margin: 0 auto;
    }
</style>
